package edu.gatech.cs2340.sharks.fms.data;

/**
 * Packet.java
 * @author Matthew Schauer
 * @param <T> The type of object to wrap
 * 
 * A thin wrapper for a status and an object.  Contains a status field, and a field for the object that is being returned if the status is OK.
 */

public class Packet<T>
{
	public Status status;
	public T value;
	public Packet(Status.Code code, T t)
	{
		status = new Status(code);
		value = t;
	}
	public Packet(Status status, T t)
	{
		this.status = status;
		value = t;
	}
}
